package com.tubi.fanxingfangfa;

import java.util.ArrayList;

public class fanxingfangfa {
    public static void main(String[] args) {
        ArrayList<String> addelement = addelement(new ArrayList<String>(), "1", "2", "3", "4");
        System.out.println(addelement);

    }

    public  static <T> ArrayList<T>  addelement(ArrayList<T> list, T t1,T t2,T t3,T t4){
        list.add(t1);
        list.add(t2);
        list.add(t3);
        list.add(t4);
        return list;
    }
}
